.class public Lcom/bitauto/autoeasy/BaseActivity;
.super Landroid/app/Activity;
.source "BaseActivity.java"


# instance fields
.field dialog:Landroid/app/ProgressDialog;


# direct methods
.method public constructor <init>()V
    .locals 0

    .prologue
    .line 22
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    return-void
.end method


# virtual methods
.method public downLoadData()V
    .locals 0

    .prologue
    .line 136
    return-void
.end method

.method public getCityID()Ljava/lang/String;
    .locals 3

    .prologue
    .line 66
    const-string v0, "autoeasy"

    const/4 v1, 0x1

    invoke-virtual {p0, v0, v1}, Lcom/bitauto/autoeasy/BaseActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v0

    const-string v1, "cityid"

    const-string v2, "201"

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 0
    .parameter "savedInstanceState"

    .prologue
    .line 28
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 29
    return-void
.end method

.method public onCreateOptionsMenu(Landroid/view/Menu;)Z
    .locals 2
    .parameter "menu"

    .prologue
    .line 113
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/BaseActivity;->getMenuInflater()Landroid/view/MenuInflater;

    move-result-object v0

    .line 114
    .local v0, inflater:Landroid/view/MenuInflater;
    const v1, 0x7f0a0001

    invoke-virtual {v0, v1, p1}, Landroid/view/MenuInflater;->inflate(ILandroid/view/Menu;)V

    .line 115
    const/4 v1, 0x1

    return v1
.end method

.method public onOptionsItemSelected(Landroid/view/MenuItem;)Z
    .locals 2
    .parameter "item"

    .prologue
    .line 122
    invoke-interface {p1}, Landroid/view/MenuItem;->getItemId()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    .line 130
    :goto_0
    const/4 v0, 0x0

    return v0

    .line 124
    :pswitch_0
    invoke-static {p0}, Lcom/bitauto/autoeasy/tool/ToolCity;->downLoadCity(Landroid/content/Context;)V

    goto :goto_0

    .line 127
    :pswitch_1
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/bitauto/autoeasy/AboutActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/BaseActivity;->startActivity(Landroid/content/Intent;)V

    goto :goto_0

    .line 122
    :pswitch_data_0
    .packed-switch 0x7f0b01c8
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method

.method public onPause()V
    .locals 0

    .prologue
    .line 38
    invoke-super {p0}, Landroid/app/Activity;->onPause()V

    .line 39
    invoke-static {p0}, Lcom/mobclick/android/MobclickAgent;->onPause(Landroid/content/Context;)V

    .line 40
    return-void
.end method

.method protected onResume()V
    .locals 0

    .prologue
    .line 33
    invoke-super {p0}, Landroid/app/Activity;->onResume()V

    .line 34
    invoke-static {p0}, Lcom/mobclick/android/MobclickAgent;->onResume(Landroid/content/Context;)V

    .line 35
    return-void
.end method

.method public refreshView()V
    .locals 0

    .prologue
    .line 140
    return-void
.end method

.method public setLayout(I)V
    .locals 3
    .parameter "layoutid"

    .prologue
    .line 47
    invoke-virtual {p0, p1}, Lcom/bitauto/autoeasy/BaseActivity;->setTitle(I)V

    .line 48
    const v2, 0x7f0b01ac

    invoke-virtual {p0, v2}, Lcom/bitauto/autoeasy/BaseActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageButton;

    .line 49
    .local v0, imageButton:Landroid/widget/ImageButton;
    const/16 v2, 0x8

    invoke-virtual {v0, v2}, Landroid/widget/ImageButton;->setVisibility(I)V

    .line 51
    const v2, 0x7f0b01aa

    invoke-virtual {p0, v2}, Lcom/bitauto/autoeasy/BaseActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    .line 52
    .local v1, imageView:Landroid/widget/ImageView;
    const v2, 0x7f020002

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setBackgroundResource(I)V

    .line 53
    return-void
.end method

.method public setTitle(I)V
    .locals 3
    .parameter "layoutid"

    .prologue
    const/4 v2, 0x7

    .line 59
    invoke-virtual {p0, v2}, Lcom/bitauto/autoeasy/BaseActivity;->requestWindowFeature(I)Z

    .line 60
    invoke-virtual {p0, p1}, Lcom/bitauto/autoeasy/BaseActivity;->setContentView(I)V

    .line 61
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/BaseActivity;->getWindow()Landroid/view/Window;

    move-result-object v0

    .line 62
    const v1, 0x7f030022

    .line 61
    invoke-virtual {v0, v2, v1}, Landroid/view/Window;->setFeatureInt(II)V

    .line 63
    return-void
.end method

.method public setTitleContent()V
    .locals 3

    .prologue
    .line 74
    const v1, 0x7f0b01ab

    invoke-virtual {p0, v1}, Lcom/bitauto/autoeasy/BaseActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    .line 75
    .local v0, textView:Landroid/widget/TextView;
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/BaseActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    const-string v2, "title"

    invoke-virtual {v1, v2}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 76
    return-void
.end method

.method public setTitleContent(Ljava/lang/String;)V
    .locals 2
    .parameter "str"

    .prologue
    .line 83
    const v1, 0x7f0b01ab

    invoke-virtual {p0, v1}, Lcom/bitauto/autoeasy/BaseActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    .line 84
    .local v0, textView:Landroid/widget/TextView;
    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 85
    return-void
.end method

.method public setTitleProgressBar(Z)V
    .locals 3
    .parameter "flog"

    .prologue
    .line 101
    if-eqz p1, :cond_1

    .line 102
    const-string v0, ""

    invoke-virtual {p0}, Lcom/bitauto/autoeasy/BaseActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f080004

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x1

    invoke-static {p0, v0, v1, v2}, Landroid/app/ProgressDialog;->show(Landroid/content/Context;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Z)Landroid/app/ProgressDialog;

    move-result-object v0

    iput-object v0, p0, Lcom/bitauto/autoeasy/BaseActivity;->dialog:Landroid/app/ProgressDialog;

    .line 107
    :cond_0
    :goto_0
    return-void

    .line 104
    :cond_1
    iget-object v0, p0, Lcom/bitauto/autoeasy/BaseActivity;->dialog:Landroid/app/ProgressDialog;

    if-eqz v0, :cond_0

    .line 105
    iget-object v0, p0, Lcom/bitauto/autoeasy/BaseActivity;->dialog:Landroid/app/ProgressDialog;

    invoke-virtual {v0}, Landroid/app/ProgressDialog;->dismiss()V

    goto :goto_0
.end method
